using UnityEngine;

public class SPR3D_Scrolling : MonoBehaviour
{
	private Renderer rend;

	private Vector2 savedOffset;

	public float scrollSpeed;

	private void Start()
	{
		rend = ((Component)this).GetComponent<Renderer>();
	}

	private void Update()
	{
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		float num = Mathf.Repeat(Time.time * scrollSpeed, 1f);
		Vector2 val = default(Vector2);
		((Vector2)(ref val))._002Ector(num, 0f);
		rend.sharedMaterial.SetTextureOffset("_MainTex", val);
	}
}
